package com.ymk.service.impl;

import com.ymk.base.mybatis.DaoRouter;
import com.ymk.base.mybatis.Pagination;
import com.ymk.bo.user.PayPaymentBO;
import com.ymk.service.IPayPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 提现记录表 服务实现类
 * </p>
 *
 * @author 莫参商
 * @since 2023-09-04
 */
@Service
public class PayPaymentService implements IPayPaymentService {

    @Override
    public PayPaymentBO get(Map param) {
    return this.daoRouter.queryForObject("PayPayment.loadPayPayment",param);
    }

    @Override
    public List<PayPaymentBO> list(Map param) {
        return this.daoRouter.query("PayPayment.loadPayPayment",param);
    }

    @Override
    public List<PayPaymentBO> listForPage(Pagination pagination) {
        return this.daoRouter.query("PayPayment.loadPayPaymentForPage",pagination);
    }

    @Override
    public void post(PayPaymentBO param) {
        this.daoRouter.insert("APayPayment.insertPayPayment",param);
    }

    @Override
    public void update(PayPaymentBO param) {
        this.daoRouter.update("APayPayment.updatePayPayment",param);
    }

    @Override
    public void del(PayPaymentBO param) {
        this.daoRouter.update("APayPayment.delPayPayment",param);
    }

    @Autowired
    private DaoRouter daoRouter;

}
